package com.runshu.newsmartark.dbutil;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Demo class
 *
 * @author yu
 * @date 12/11/20
 * @decs：本柜子的商品
 */
@Entity(tableName = "OperRecordfEntity")
public class OperRecordfEntity {
    @PrimaryKey(autoGenerate = true)
    long id;
    //yyyy-MM-dd hh:mm:ss
    String createTime;
    //流水号
    String productId;
    //产品名
    String productName;
    //type 0上架 1领取 2归还
    int type;

    String userId;

    String userName;

    public OperRecordfEntity(String createTime, String productId, String productName, int type, String userId, String userName) {
        this.createTime = createTime;
        this.productId = productId;
        this.productName = productName;
        this.type = type;
        this.userId = userId;
        this.userName = userName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}